package com.example.test.建造者;


/**
*@ClassNameAreaBuilder
*@Description
*@Author寂寞旅行
*@Date2021/4/10 10:17
*@Version V1.0
**/
public class AreaBuilder {

    private Area area =new Area();
    private BasicArea basicArea;

    public AreaBuilder() {
    }

    public AreaBuilder(BasicArea basicArea) {
        this.basicArea = basicArea;
    }

    public Area builder() {
        return area;
    }

    public AreaBuilder builderBasic() {
        area.setCode(basicArea.getCode());
        area.setName(basicArea.getName());
        return this;
    }

    public AreaBuilder builderDate() {
        area.setCreateTime(basicArea.getCreateTime());
        area.setDeleteStatus(basicArea.getDeleteStatus());
        return this;
    }

}